package com.iot.ic.tcp.model;

import java.util.List;
import java.util.Map;

public class MsgResponse {

	private Byte type;// 设备类型

	private Byte model;// 设备型号

	private String mac;// 设备mac

	private short cmdCode;// 操作码
	
	private Byte header[];//头字节数组（包含设备类型、设备型号、设备mac信息的长度为6的字节数组）

	private boolean closeConn;// 通信完成后是否关闭连接

	private Map<Byte, Map<Byte, Object>> sendMap;// 返回数据Map

	private byte checkResult;//验证结果码

	private String deviceNo;

	private String convertorNo;

	private Byte flowNum;

	private List<Byte> resData;

	private List<Byte> idList;

	private List<MsgResponse> extraCmdList;
	
	private byte[] dataBytes;


	public List<MsgResponse> getExtraCmdList() {
		return extraCmdList;
	}

	public void setExtraCmdList(List<MsgResponse> extraCmdList) {
		this.extraCmdList = extraCmdList;
	}

	public Byte getType() {
		return type;
	}

	public void setType(Byte type) {
		this.type = type;
	}

	public Byte getModel() {
		return model;
	}

	public void setModel(Byte model) {
		this.model = model;
	}

	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	public short getCmdCode() {
		return cmdCode;
	}

	public void setCmdCode(short cmdCode) {
		this.cmdCode = cmdCode;
	}

	public boolean getCloseConn() {
		return closeConn;
	}

	public void setCloseConn(boolean closeConn) {
		this.closeConn = closeConn;
	}


	public Map<Byte, Map<Byte, Object>> getSendMap() {
		return sendMap;
	}

	public void setSendMap(Map<Byte, Map<Byte, Object>> sendMap) {
		this.sendMap = sendMap;
	}

	public Byte[] getHeader() {
		return header;
	}

	public void setHeader(Byte[] header) {
		this.header = header;
	}

	public byte getCheckResult() {
		return checkResult;
	}

	public void setCheckResult(byte checkResult) {
		this.checkResult = checkResult;
	}

	public String getDeviceNo() {
		return deviceNo;
	}

	public void setDeviceNo(String deviceNo) {
		this.deviceNo = deviceNo;
	}

	public Byte getFlowNum() {
		return flowNum;
	}

	public void setFlowNum(Byte flowNum) {
		this.flowNum = flowNum;
	}

	public List<Byte> getIdList() {
		return idList;
	}

	public void setIdList(List<Byte> idList) {
		this.idList = idList;
	}

	public String getConvertorNo() {
		return convertorNo;
	}

	public void setConvertorNo(String convertorNo) {
		this.convertorNo = convertorNo;
	}

	public List<Byte> getResData() {
		return resData;
	}

	public void setResData(List<Byte> resData) {
		this.resData = resData;
	}

	public MsgResponse(short cmdCode, Byte[] header, Map<Byte, Map<Byte, Object>> sendMap){
		this.cmdCode=cmdCode;
		this.header=header;
		this.sendMap=sendMap;
	}
	
	public MsgResponse(){
		
	}

	public byte[] getDataBytes() {
		return dataBytes;
	}

	public void setDataBytes(byte[] dataBytes) {
		this.dataBytes = dataBytes;
	}

    


}
